Add function for searching entries to Entry type
Replace with new entry database module