getting the whole thing to work with a php/mysql backend.