Retrieve input value from database when editing