Added database setup script and simulated device setting