fixed sql query bug
fixed static url bug