fix missing flask namespace
fix missing flask namespace
fix missing flask namespace
update insert in add_entry
debug info
missing db commit