First implementation of database storage