Update sample database code