Fixed sql bug

Create table if not exists