Add PostgreSQL support, import timestamps.