Fix syntax error in database adapter