Updated DB query to use transactions instead of bills
Revamped UI