More database work

implemented database to menu relationship