stats db setup