automatic db initalization