Connected the sqlite db in code

Test plan: made a select query for all picture id-s, all ids were fetched