Bibarchive: DB API & Test

* Code optimised...

* Database connection test written

...removed Java like var declarations