added time range
added search by term and database by type.