fixed DB connection

BROKEN: thinks order_type value is order_type key