add test. use sqlachemy.