add languages
er diagram, db error function, minor changes