added db connection & entities