updated for SQL and added voice command