Added database loading and binding