fixed db clear, enabled cors