Rename the table and the `view_time` column to match Dotclear's conventions.
Optimize the table structure.
Include the type cast within the variable.
Add shortcut to access the `postsStats_session` table.
Optimize the database query that checkes if the `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.