example of db usage