API: Modified code
Moved print_success and print_error into one
Removed addslashes from queryDB parameters