switching express search to sqlalchemy.
switching express search related search to use stored queries code. not finished.