Database connection - example

Continuing the discussion from Mysql database connection: