Started writing database connection interface