Combined handlers and routes. Added data to handel sql commands.