changed db def to accomodate int and bool types instead of keeping everything as string