Report question

Question: Connect to a Database in Flask, Which Approach is better?