changed gemlock for sqlite3