Fix insert and query with PDO