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: databases.go
    path of file: ./repos/portmaster/core/base
    
    the code of the file until where you have to start completion: package base

import (
	"github.com/safing/portbase/database"
	_ "github.com/safing/portbase/database/dbmodule"
	_ "github.com/safing/portbase/database/storage/bbolt"
)

// Default Values (changeable for testing).
var (
	DefaultDatabaseStorageType = "bbolt"
)

func registerDatabases() error {
	_, err := database.Register(&database.Database{
		Name:        "core",
		Description: "Holds core data, such as settings and profiles",
		StorageType: DefaultDatabaseStorage
    
func registerDatabases() error {
	_, err := database.Register(&database.Database{
		Name:        "core",
		Description: "Holds core data, such as settings and profiles",
		StorageType: DefaultDatabaseStorageType,
	})
	if err != nil {
		return err
	}

	_, err = database.Register(&database.Database{
		Name:        "cache",
		Description: "Cached data, such as Intelligence and DNS Records",
		StorageType: DefaultDatabaseStorageType,
	})
	if err != nil {
		return err
	}

	// _, err = database.Register(&database.Database{
	//   Name:        "history",
	//   Description: "Historic event data",
	//   StorageType: DefaultDatabaseStorageType,
	// })
	// if err != nil {
	//   return err
	// }

	return nil
}