improved sql backend tests
Added mongodb backend.