added function get_databasename