database facade