working on db construction