Initialize tables on connect