Implemented php database