Added a simple PDO/SQL queue

Tested with MySQL and SQLite
Add an index to speed up queries on PDO engine