initial changes for building the db through APIs
initial changes for building the db through APIS