Sample autocompleting, DB-populated dropdown

I have no idea yet how to change this to put it into our project, but
this is what I've got on this idea so far.