Prepare sqlite database for testing.