Add hook to create db