Auto-indent query
Convert KippoInput class to RedBeanPHP and tidy up queries