o Added PostgreSQL support
o Some database cleanup