added cmd_clvl and moved all the database request functions to DBHelper.c