Added real database testing