use smarter database interaction in case of confliction query/data