Simple script to automatically test the database