added database support and editable menu