removed bug in server for adding pin

update server and pindao class