[feature/session-storage] Turn some db access in session into storage calls

(cherry-picked from naderman)

PHPBB3-9733
[feature/session-storage] Add session storage object to session constructor

PHPBB3-9733
[feature/session-storage] Modified database calls to fix errors

Fixed: (1) minor sql error 's.*' -> '*'
           (2) false should be casted to int to be 0
           (3) fetch_field should be fetch row to match old session code

PHPBB3-9733