Some changes to make preparing easier (and unlink a little from DB)

@mhvk here's some changes to make preparing easier and make it able to separate from DB a little more. These are needed for the longslit calibration. documentation explains a little bit but needs to be fleshed out.