API's exist within firefly for doing this, we need to write some Java "glue" code to talk to our databases.