Connected database and created classes.