added bpd to r-utils and fixed database connection