added max function, fixed dbconsole print
Merge branch 'master' of github.com:araqne/logdb