Optimize the database query that checks if a `session_id` is already present.
Make sure the lines of code are no longer than 100 characters while still being readable.
Issue #7 - replace the calls to the SQL function `NOW()` with an equivalent in PHP.