Added database connection layer.