attempt to implement search by tag
remove unnecessary DBSession() calls