Fixing empty question list error
Minor - adding comments
Using $app['orm.ems']['db_write'] instead of $app['orm.em'] because we can use 2 databases to read or write depending in a configuration located in services.php
Using db_read key instead of mysql_read + adding listeners to the databases.