updates

safer sql queries, new registration script to get userid after they've
set it, so no more refreshing to make new functions work, also gets the
id where needed on home search page to make sure setting a fav always
goes through okay (might need to be on the favs page too.