Login Script + SQL Scripts

Need to fix the login and more SQL queries