SQL database now uses app context instead of activities for redusing risk of memory leaks