Database connection check on initdb