add viewdb.php for rasensor project