Began with connection to database and sql statements
Login and session functions set
Login and session functions set