fixed boolean database values always returning false