#292, #293, #295, #298

https://github.com/classicdb/database/issues/292
https://github.com/classicdb/database/issues/293
https://github.com/classicdb/database/issues/295
https://github.com/classicdb/database/issues/298