changed unframed_sql_execute API and further refactoring