add global database variable and include file
file debug mode
fixing php model User