updated db table generation scripts