Moved some files, deleted some files...

Put php script files (functions, checkUser) into db folder
Put db connection code into connect.php - included where needed