Working on sqlite class