database connectivity
cleaned up the code
Added a popup to add word