changed db structure and added little frontend