func NewStateDB(filePath string) (*sql.DB, error) {
	if filePath == "" {
		return nil, fmt.Errorf("empty file path for sqlite database")
	}
	return createStateDB(filePath)
}
// NewStateDB returns an sql database object, initialised with necessary tables.
NewStateDB returns an sql database object, initialised with necessary tables.
// NewStateDB returns an sql database object initialised with necessary tables .
func NewStateDB(filePath string) (*sql.DB, error) {
	if filePath == "" {
		return nil, fmt.Errorf("empty file path for sqlite database")
	}
	return createStateDB(filePath)
}
func NewStateDB ( filePath string ) ( * sql . DB , error ) { if filePath == " " { return nil , fmt . Errorf ( " " ) } return createStateDB ( filePath ) }
NewStateDB returns an sql database object, initialised with necessary tables.
NewStateDB returns an sql database object initialised with necessary tables .