works to hit database and return results. slightly ackward formatting of ajax results in view, though