initial autocomplete working
reworked db models