phatdb: All functions return standard errors

os.ErrExist / os.ErrNotExist used from the "os" package
All functions now return (_, error)
Tests extended to cover new / modified functionality