adding db and modifying HR table