fixed bugs on database with fb login integration