Session handling with database as session_handler fails

when changing session handler from file to database
Login doesn’t work anymore

i found it:
Table is called session, but sessions is expected.
in Session Table
Column is called session_id, but id is expected.

i tried to write a patch but even after 2hours of searching and rewriting ‘id’ to ‘session_id’ error occurs so i lost my enthusiasm to write a fix.
hopefully someone who knows libreNMS core much deeper than myself would fix this issue.

By the way:
when using a database and also table for session handling is prepared, why not use database session handling by default?
It also would make advanced user handling extrem easy like requested here:
https://community.librenms.org/t/better-user-management/8868