Add node information to database

Currently we only support Postgres and there is a single table
that holds all node information. The schema could be improved.