getting data from orignal database