updated database calls