added typeahead.js for future use
classified db access, and secretized apis and db credentials