db setup for reference