Added sql for tables needed