Added support for editing + bugfixes

Bugfix on db addrow