PEP8
added documentation for database.entries_from_query_result