implemented database side of google auth