change usage of db to database