remove duplicated import
Remove unnecessary type cast
Improve shortDate conversion by using const
Extract SQL queries into consts WIP
Add request duration to logs
Make tests pass again