Added function add_db