setting up db and autocomplete