Implemented sql_commands function. Removed hardcode on configuration.