rewrite edit course REPLACE query with queryDB() params