Bugfixes to mysql/customer work