Add database connection and make some fields.