added Database access for category menu