added edit database button
flow done, prettified
save dialogs etc