Tried to get search working
DB writes implemented