Fixed category & time selection on ImmediateTransaction edition

Also simplified database management by turning DatabaseHelper into a singleton