working on db storage problems