Fix func name of database instance