[Ian] fixing timing issue by cleaning database prior