Script to populate lists from database