Fixed refresh issue
before AJAX
tried to get better database