Fixed login and build setup
Added home page. Moved code to connect_db