solution to sqlite