Proper permissions for DB folder?

Right now it only works on 777 for me, any suggestions regarding security?