Cleanup DAO layer

* Inject logger into DAO instances
* Log errors and warnings using logger
* Remove unused methods from Dao\Apply
* Remove string concatenations of user provided data in SQL queries
* Allow PDO connection exception to rise to the application level
* Normalize style of query building in all DAO methods

Bug: 57687
Bug: 57570
Change-Id: I9633cbf5fe7fd1dc9a2c0b31ff20e4209f140be0
Merge "Cleanup DAO layer"