fix actor references, insertions and readings from mysql are working as expected.