change to postgresql and starting to write front end instead of admin side