"Open the DataBase before interact with it." | db databasePath | databasePath := 'Sample.sqlite' asLocalPathName. db := FMDatabase withPath: databasePath. db open ifTrue: [ self print: 'DB Opened Successfully' ]. "Close the DataBase after interact with it." db close ifTrue: [ self print: 'DB Closed Successfully' ].