Merge pull request #251 from einhverfr/1.4

1.4
Merge pull request #253 from einhverfr/1.4

correcting error handling with old code side where db errors occur and cause internal server errors.
Merge pull request #55 from ledgersmb/1.4

up to date