Write to database

Insert new W/O into database
Update existing W/O in database