database setup and system id assignment