Create class for preconfigured database connection