now properly set db connection before adding tables2