index calls database instead of parsing