easy example with db connection