working dbsetup script