Connecting the backend and the database