workaround for complex query issue in stored data dao. fix #92