fixed bug where the app tried to insert an empty prim key to the table haciend when the db is empty
changed host address to localhost