Fix database tasks

There was a typo, bad method call and minor inconsistencies with other adapters.