The sample code of Database interaction