SQLite Except: The database file is locked


I’m developing a game with Sqlite and WCF. But they only work fine together at the first run, if I try play scene again, console show “SQLite Except: The database file is locked”, Help!

Codes below

LobbyServiceClient _client = new LobbyServiceClient(_binding,_endpoint);


try {
			if (_client.State!=CommunicationState.Faulted) {

}}catch (System.Exception ex) {

string _sql =“Some Select Function”;

SqliteHelper _db = new SqliteHelper(“client.db”);

		DataTable _dt=  _db.Q(_sql);

Here’s a temporary solution:
Put WCF codes between SqliteConnection.Open() and Close().
Thanks to Devesh! TY!