Made sure to close up the database connections