Attempt to fix list issue of not writing to database