remove lock for access sql and get sn from datetime