Data issue

This changes the SQL layout to support (pre)processed data without raw/preprocessed data.
It fixes any relevant code involved on thath
Yes, it is, that is why they're under the context manager. They don't actually need the preprocessed_data params, but this was one of the errors that I was getting and I just changed it fast.