Example on DB integration in Flask