save code to db with id 1