Cleaning up database module.