Changed to postgresql, changed settings for production, add error.htmls, and altered project layout