started to add tests for integer boundaries in database layer,
sort of fixed the SQlite module