Added database editor code

Added code for database editor. Also fixes #5 bug with enter key in text
field causing the application to close