changed sqlite to sqlite 3