Added capability to search for fields in database