Added db creation
Updated flashes (flashes can now be found in the login.html template)
Added user_loader function for the login_manager