Blocks working in MySQL with microsecond precision. Still needs a lot of cleanup