Added functionality for retrieving and inserting configuration data in our database

TODO: write tests for ConfigsStore and expand our ImagesStore to handle
deletions. Then we can rewrite our tests to delete the test images
after we insert them.