Install pg and sql packages. Put in error redirect for register page