parametrized build with sqlachemy