move helper scripts to bin directory, fix PDO storage