started working on main_database.cc