Updated sql functions for hosting and joining game