Fixes in database test
Merge remote-tracking branch 'origin/master'