basic database setup script
ber matching script