Added DB check script in PHP