Fetches code problems from database.