update database with name pos