started implementation of db