more backend, index loading from database with php