Fixes error when not adding LineItem.cost
Small fix to improve db queries on Sales and Payments controllers.
Adds /my/settings API endpoint