Added database calls.