did a few things with the library db connection