App Code with updated sql lite database