Refactoring rethinkdb initialiser to use url.