Hook the db creation