Sql Get String From Charindex Postgresql Create Database