Church and mosque build 'beautiful relationship' after sharing building