moved the .install from db_query to pdo using an insert and update