Change  isConnectDatabase() to isInsertDatabase