added db class into index.php and example of usage