db create, setup ranking