Added / Edited Toms login files

Added the files tom gave me and edited them to talk to my DB.