Initial work on database connection using db API including an example(that will get used in QR Manager)