Open/close DB connection implemented