Making site read from database if possible but have kept csv for a fallback for now