databases splitted in two and fully working with postgresql