Completely reworked database communication