Reloaded languages, some work on database consistency.
Removed some parts, fixed leaks in database backend.