DBEZ insert function added, taking over typecasting because mysqli won't do it for me, realizing that a tinyint(1) is really not a boolean value and shouldn't be treated as such.