Script to refresh the database