Fixed name length in sql

Fix #50