Added functionality from users table to all other tables