store db in library