Added version to login sql.