Changed plan param from 'current' to 'plan' and removed some db query code for pdo that was not working (until I fix it)