improve sql lib make it hhvm compatible
move doc to interface