Initial model of db connection.