Generate Questions from database