You need simply to specify /data as a location to store database files. This link suggests --datadir=path as an option for this, and this link gives details on setting up in ubuntu which should be portable to debian/raspbian.