Flask message flashing for alerts
SQLException handling