Add Postgresql database connection.
Add feature generation. (not finished)