Fix bug with cleaning db
Use PDOStatement for all querys & fix bug with delete old records from db