major change in the creation / now it will just create a multi table database containing all patterns