added some database connectivity