added support to search for database entries