Added a function to check if the users table exists.