[!!!][BUGFIX] Database API: Cast bool values to integer for MySQL