replaced mysqli with pdo on the backend part 1

fixed some bug on the way too
blurred lines