using my own class for databasing