Add strings to db and implement string escaping