Added a simple database search method for activities.