Clean up SQL queries. Add redirect when users are not logged in.
Add CNAME