Added code for committing stuff to a db and a simple search