changed Boolean to integer
local database don't have proper Boolean support
1 = True
other = False