Changed to object style database connection