Added function to obtain the reg_id of the user in session.
Modify test.php to obtain the reg_id using the new function to acces the
gcm_users db