Add rethinkdb init code and ignore tmpdata dir