Fixed initial database creation
added edit methode for TUI