Database API Improvements, removed App_Code

App Code caused issues. Database API execute command is nearly done.