https://s2-labs.com/developer-tutorials/database-class-method-result-object/