adding flow logs, adding table scripts fixing db creation