Removed useless sql tables and field.