construct the Sqlite database and related interface