Contact action and db operations for Contact