Fixing some record locking issues

Also fixed DOB NaN problem in javascript.php
Merge pull request #7 from RoyWenman/master

Fixing some record locking issues