Fixing issue from go-gitea/gitea #5728 (#1192)
Fixing issue from go-gitea/gitea #5728 (#1192)

* Format boolean values to true/false even when it is returned as byte-slice,
* Fix the sequence generation, the proper sequence name is used (instead of 'table_id_seq'), and fix the next value be max+1 always
go-xorm/xorm,go-xorm/xorm