added return type and parameter for db()