addresrs compatibility with MariaDB and use proper syntax for ID field