refine sqlite and add intentservice