Initial db storage implementation