force close database connections