Changed a bit of the SQL, added support for system insertion, working on character insertion