Db testing

this pull into the master should be ok as first tests succeeded