Hooking in database creation