Move the SQL functions from Finalizer to exposure-lib
For a better encapsulation of the exposure data, the explicit SQL functions in Finalizer should be moved to exposure-lib and provided there as functions to be used by Finalizer. This will make the transition of the upcoming renaming of tables and fields in the database much easier.