My sqlite3 database display this error:
 => HY000
 => 5
 => "database is locked"
I have solved my problem.
Problem in sqlite3 database.I have used sqlite3 3.6.22 on Ubuntu 10.04, This sqlite3 does not support multithreading so I have tested on sqlite3 3.7.7 version and use Pragma command read from http://www.sqlite.org/wal.html.