Work on the add function
Add initDb to set datapath and create database. Debugging the
searchEntry now leading to error.