now writes to mysql