starting to add parameters for max data and max rows
bugfixes
variable size db achieved