public function database(array $tables)
    {
        $views    = [];
        $others   = [];
        $messages = [];
        foreach ($tables as $table) {
            ($table->Comment == 'VIEW') ?
                            array_push($views, [
                                'name' => $table->Name
                            ]) :
                            array_push($others, [
                                'name'        => $table->Name,
                                'rows'        => $table->Rows,
                                'create_time' => $table->Create_time,
                                'collation'   => $table->Collation,
                                'size'        => $this->formatSize($table->Data_length + $table->Index_length)
            ]);
            if ($table->Rows > 1000) {
                array_push($messages, ['warning', sprintf('Table %s has too many data. Clean table historical entities to increase system performance.', $table->Name)]);
            }
        }
        return $this->view('database', ['views' => $views] + ['tables' => $others] + ['messages' => $messages]);
    }