Fix documentation. Move more methods to database plugin.