Finished closeDB() tests and made a new error for failed cases called DBClosedError