making db be created earlier