updated db generation scripts