I just rooted my Nexus 5 using this method: http://www.phonearena.com/news/How-to-root-Google-Nexus-5_id49014
I also enabled USB debugging in the developer options.<
$ adb shell $su # getenforce Enforcing
now try
adb shell su chmod 777 /path/to/yout_file
exit from shell
open new CMD and try adb pull /path/to/yout_file
adb pull /path/to/yout_file
It will work fine now.
you'll have security problems because of this any application will be able to access your database.