dao: Add a type hint to getConnection() and some extra newlines