Add pre-staging hook to migrate the db