bugfix: setting database creation transaction succesful
bugfix: added coalesce to sum queries
Added new custom exceptions