Added backticks to a bunch of SQL statements
Modified build script #2 slightly
Removed unnecessary global declaration
Added function to determine if two users are friends.
Added endpoint method to see if two users are friends