Implemented database storage