Moved the database thingie to the lib directory