Open/closing a DB connection for each flash message saving/retrieving operation doesn't sound good.