adding db manager, modifying ParseInput.