login picture
sql changes

altered the sql to match the new structure of the db