Separated SQL creation query from config.php
Added changed to the request handler