Make Database::query() work without bind parameters
Update Controller::getIds() so that it supports any kind of additional parameters
Simplify Message::getMessages()
Plus a tiny whitespace fix