Modified the dbconnection insert method