integrate questions to database