added MainActivity handle in DatabaseManager