-Pull open and close database methods.