Switching to a db using ets