set readonly on projectapp when editing to reduce queries #651
util to log connection.queries in a more readable format #651