updated code, completed first phase of implementation, still need to debug mysql/php connection