now pulls from database