New script to ensure proper input db