added getOrderWeight function for #27
integrating order DB requests in payment system, fixes #27