fixed bugs in migrations rating and sessions (syntax error)