You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: project.go
    path of file: ./repos/datastation/runner
    
    the code of the file until where you have to start completion: package runner

import (
	"database/sql"
	"os"
	"path"
	"path/filepath"
	"strings"

	_ "github.com/mattn/go-sqlite3"
)

var HOME, _ = os.UserHomeDir()
var DEFAULT_FS_BASE = path.Join(HOME, "DataStationProjects")
var CONFIG_FS_BASE = DEFAULT_FS_BASE

func (ec EvalContext) getProjectFile(projectId string) string {
	ext := ".dsproj"
	if !strings.HasSuffix(projectId, ext) {
		projectId += ext
	}

	if filepath.I
    
func (ec EvalContext) getPagesFromDatabase(db *sql.DB) ([]ProjectPage, error) {
	rows, err := db.Query(`SELECT data_json FROM "ds_page" ORDER BY position ASC`)
	if err != nil {
		return nil, err
	}

	defer rows.Close()

	var j []byte
	var pages []ProjectPage

	for rows.Next() {
		err = rows.Scan(&j)
		if err != nil {
			return nil, err
		}

		var p ProjectPage
		err = jsonUnmarshal(j, &p)
		if err != nil {
			return nil, err
		}

		pages = append(pages, p)
	}

	return pages, nil
}