Change ns and namespace to db and database.