change db
Added flash messages