added function for checking inserted params, modified loggers and test queries