Edited index, database, added registration

Working on login/registration, still not working, but close. Will
continue working tomorrow.
Made changes in structure to sql file to make it work correctly.