accept "database" property as well as "db"